Interface sjl.Container
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface sjl.Container

public interface Container
extends Object
Defines the methods allowed on all container types. This is the absolute minimum set of operations that all container types must support.

Copyright © 1996 Finn Bock

See Also:
List, Vector, Deque, Array, Set, MultiSet, Map, MultiMap

Method Index

 o beginGeneric()
Return an iterator that points to the beginning of the container.
 o empty()
Return true of the container does not contain any elements.
 o endGeneric()
Return an iterator that points past the end of the container.
 o equals(Object)
Compare the elements in this container with the elements in another container.
 o flush()
Erase all elements in the container.
 o max_size()
Return the size of the largets possible container.
 o size()
Return the number of element that the container contains.

Methods

 o flush
  public abstract void flush()
Erase all elements in the container.
 o equals
  public abstract boolean equals(Object container)
Compare the elements in this container with the elements in another container.
Returns:
true is the elements match.
Overrides:
equals in class Object
 o beginGeneric
  public abstract ForwardIterator beginGeneric()
Return an iterator that points to the beginning of the container.
 o endGeneric
  public abstract ForwardIterator endGeneric()
Return an iterator that points past the end of the container.
 o size
  public abstract int size()
Return the number of element that the container contains.
 o empty
  public abstract boolean empty()
Return true of the container does not contain any elements.
 o max_size
  public abstract int max_size()
Return the size of the largets possible container.

All Packages  Class Hierarchy  This Package  Previous  Next  Index